	format	MS COFF
	extrn	___bb_blitz_blitz
	extrn	___bb_drivers_drivers
	extrn	___bb_includes_globals
	extrn	___bb_minib3d_minib3d
	extrn	__bb_CUI_Delete
	extrn	__bb_CUI_New
	extrn	__bb_CUI_Update
	extrn	_bbArrayNew1D
	extrn	_bbEmptyArray
	extrn	_bbGCFree
	extrn	_bbNullObject
	extrn	_bbObjectCompare
	extrn	_bbObjectFree
	extrn	_bbObjectRegisterType
	extrn	_bbObjectReserved
	extrn	_bbObjectSendMessage
	extrn	_bbObjectToString
	extrn	_bbOnDebugEnterScope
	extrn	_bbOnDebugEnterStm
	extrn	_bbOnDebugLeaveScope
	extrn	_bbStringClass
	extrn	_bb_CUI
	extrn	_bb_MainEditor
	extrn	_brl_blitz_ArrayBoundsError
	extrn	_brl_blitz_NullObjectError
	extrn	_maxgui_maxgui_ClientHeight
	extrn	_maxgui_maxgui_ClientWidth
	extrn	_maxgui_maxgui_CreateCanvas
	extrn	_maxgui_maxgui_CreateWindow
	extrn	_maxgui_maxgui_Desktop
	extrn	_maxgui_maxgui_SetGadgetLayout
	public	___bb_includes_cedui
	public	__bb_CedUI_Delete
	public	__bb_CedUI_Init
	public	__bb_CedUI_New
	public	_bb_CedUI
	section	"code" code
___bb_includes_cedui:
	push	ebp
	mov	ebp,esp
	push	ebx
	cmp	dword [_51],0
	je	_52
	mov	eax,0
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
_52:
	mov	dword [_51],1
	push	ebp
	push	_45
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	call	___bb_blitz_blitz
	call	___bb_drivers_drivers
	call	___bb_minib3d_minib3d
	call	___bb_includes_globals
	push	_bb_CedUI
	call	_bbObjectRegisterType
	add	esp,4
	mov	ebx,0
	jmp	_34
_34:
	call	dword [_bbOnDebugLeaveScope]
	mov	eax,ebx
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__bb_CedUI_New:
	push	ebp
	mov	ebp,esp
	sub	esp,4
	push	ebx
	mov	eax,dword [ebp+8]
	mov	dword [ebp-4],eax
	push	ebp
	push	_54
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	push	dword [ebp-4]
	call	__bb_CUI_New
	add	esp,4
	mov	eax,dword [ebp-4]
	mov	dword [eax],_bb_CedUI
	push	ebp
	push	_53
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	call	dword [_bbOnDebugLeaveScope]
	mov	ebx,0
	jmp	_37
_37:
	call	dword [_bbOnDebugLeaveScope]
	mov	eax,ebx
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__bb_CedUI_Delete:
	push	ebp
	mov	ebp,esp
	mov	eax,dword [ebp+8]
_40:
	mov	dword [eax],_bb_CUI
	push	eax
	call	__bb_CUI_Delete
	add	esp,4
	mov	eax,0
	jmp	_57
_57:
	mov	esp,ebp
	pop	ebp
	ret
__bb_CedUI_Init:
	push	ebp
	mov	ebp,esp
	sub	esp,12
	push	ebx
	push	esi
	push	edi
	mov	eax,dword [ebp+8]
	mov	dword [ebp-4],eax
	mov	dword [ebp-8],_bbEmptyArray
	mov	eax,ebp
	push	eax
	push	_89
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	push	_58
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	10
	push	_60
	call	_bbArrayNew1D
	add	esp,8
	mov	dword [ebp-8],eax
	push	_62
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_64
	call	_brl_blitz_NullObjectError
_64:
	push	527
	push	_bbNullObject
	call	_maxgui_maxgui_Desktop
	push	eax
	call	_maxgui_maxgui_ClientHeight
	add	esp,4
	push	eax
	call	_maxgui_maxgui_Desktop
	push	eax
	call	_maxgui_maxgui_ClientWidth
	add	esp,4
	push	eax
	push	0
	push	0
	push	_67
	call	_maxgui_maxgui_CreateWindow
	add	esp,28
	mov	esi,eax
	inc	dword [esi+4]
	mov	eax,dword [ebx+8]
	dec	dword [eax+4]
	jnz	_71
	push	eax
	call	_bbGCFree
	add	esp,4
_71:
	mov	dword [ebx+8],esi
	push	_72
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,0
	mov	eax,dword [ebp-8]
	cmp	ebx,dword [eax+20]
	jb	_74
	call	_brl_blitz_ArrayBoundsError
_74:
	mov	eax,dword [ebp-8]
	shl	ebx,2
	add	eax,ebx
	mov	dword [ebp-12],eax
	mov	edi,dword [ebp-4]
	cmp	edi,_bbNullObject
	jne	_77
	call	_brl_blitz_NullObjectError
_77:
	mov	esi,dword [ebp-4]
	cmp	esi,_bbNullObject
	jne	_79
	call	_brl_blitz_NullObjectError
_79:
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_81
	call	_brl_blitz_NullObjectError
_81:
	push	0
	push	dword [ebx+8]
	push	dword [esi+8]
	call	_maxgui_maxgui_ClientHeight
	add	esp,4
	push	eax
	mov	ebx,3
	push	dword [edi+8]
	call	_maxgui_maxgui_ClientWidth
	add	esp,4
	cdq
	idiv	ebx
	shl	eax,1
	push	eax
	push	5
	push	5
	call	_maxgui_maxgui_CreateCanvas
	add	esp,24
	mov	ebx,eax
	inc	dword [ebx+4]
	mov	eax,dword [ebp-12]
	mov	eax,dword [eax+24]
	dec	dword [eax+4]
	jnz	_85
	push	eax
	call	_bbGCFree
	add	esp,4
_85:
	mov	eax,dword [ebp-12]
	mov	dword [eax+24],ebx
	push	_86
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,0
	mov	eax,dword [ebp-8]
	cmp	ebx,dword [eax+20]
	jb	_88
	call	_brl_blitz_ArrayBoundsError
_88:
	push	1
	push	1
	push	1
	push	1
	mov	eax,dword [ebp-8]
	push	dword [eax+ebx*4+24]
	call	_maxgui_maxgui_SetGadgetLayout
	add	esp,20
	mov	ebx,0
	jmp	_43
_43:
	call	dword [_bbOnDebugLeaveScope]
	mov	eax,ebx
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
	section	"data" data writeable align 8
	align	4
_51:
	dd	0
_29:
	db	"CedUI",0
_46:
	db	"GENED3D_VERSION",0
_47:
	db	"i",0
	align	4
_48:
	dd	_bbStringClass
	dd	2147483646
	dd	1
	dw	48
_49:
	db	"MainEditor",0
_50:
	db	":CEditor",0
	align	4
_45:
	dd	1
	dd	_29
	dd	1
	dd	_46
	dd	_47
	dd	_48
	dd	4
	dd	_49
	dd	_50
	dd	_bb_MainEditor
	dd	0
_30:
	db	"New",0
_31:
	db	"()i",0
_32:
	db	"Delete",0
_33:
	db	"Init",0
	align	4
_28:
	dd	2
	dd	_29
	dd	6
	dd	_30
	dd	_31
	dd	16
	dd	6
	dd	_32
	dd	_31
	dd	20
	dd	6
	dd	_33
	dd	_31
	dd	48
	dd	0
	align	4
_bb_CedUI:
	dd	_bb_CUI
	dd	_bbObjectFree
	dd	_28
	dd	16
	dd	__bb_CedUI_New
	dd	__bb_CedUI_Delete
	dd	_bbObjectToString
	dd	_bbObjectCompare
	dd	_bbObjectSendMessage
	dd	_bbObjectReserved
	dd	_bbObjectReserved
	dd	_bbObjectReserved
	dd	__bb_CedUI_Init
	dd	__bb_CUI_Update
_55:
	db	"Self",0
_56:
	db	":CedUI",0
	align	4
_54:
	dd	1
	dd	_30
	dd	2
	dd	_55
	dd	_56
	dd	-4
	dd	0
	align	4
_53:
	dd	3
	dd	0
	dd	0
_90:
	db	"gads",0
_91:
	db	"[]:TGadget",0
	align	4
_89:
	dd	1
	dd	_33
	dd	2
	dd	_55
	dd	_56
	dd	-4
	dd	2
	dd	_90
	dd	_91
	dd	-8
	dd	0
_59:
	db	"$BMXPATH/projects/GenEd3D/Includes/CedUI.bmx",0
	align	4
_58:
	dd	_59
	dd	11
	dd	3
_60:
	db	":TGadget",0
	align	4
_62:
	dd	_59
	dd	12
	dd	3
	align	4
_67:
	dd	_bbStringClass
	dd	2147483647
	dd	11
	dw	71,101,110,69,100,51,68,32,118,45,48
	align	4
_72:
	dd	_59
	dd	13
	dd	3
	align	4
_86:
	dd	_59
	dd	14
	dd	3
